package com.myKng.auth.payload.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
public class JwtResponse {
    
    private String token;
    private String refreshToken;
    private String type = "Bearer";
    private Long id;
    private String username;
    private String nickname;
    private String email;
    private String avatar;
    private List<String> roles;
    
    public JwtResponse(String token, String refreshToken, Long id, String username, String nickname, 
                      String email, String avatar, List<String> roles) {
        this.token = token;
        this.refreshToken = refreshToken;
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.email = email;
        this.avatar = avatar;
        this.roles = roles;
    }
}